package miniMVC
{
	import miniMVC.i.IView;
	import miniMVC.patterns.Listener;

	/**
	 * 视图
	 * 使用时先初始显示组件,然后在初始处监听facade的消息到指定方法
	 * @author Pelephone
	 * @website http://cnblogs.com/pelephone
	 */
	public class View extends Listener implements IView
	{
		protected var _skin:Object;
		
		public function View(viewName:String,viewSkin:Object=null)
		{
			super(viewName);
			_skin = viewSkin;
		}
		
		/**
		 * 初始组件
		 * 在这里addFacadeListen绑定监听全局消息的方法
		 
		protected function init():void
		{
			
		}*/
		
		public function getViewSkin():Object
		{
			return _skin;
		}
		
		public function setViewSkin(viewSkin:Object):void
		{
			_skin = viewSkin;
		}
	}
}